function openPic(img){
	$('#open0').data('cid',$(img).attr('id'));
	showDiv('open0');
}
function pic0() {
	goTakePhoto("img0");
	closeDiv('open0');
}
function album0() {
	openLibrary("img0");
	closeDiv('open0')
}
function img0(src) {
	var img = document.getElementById($('#open0').data('cid'));
	src = 'data:image/jpg;base64,' + src;
	img.src = src;
}
function checkSubs(){
	showLoadingPad();
	var t = $('#type').val();
	var r = $('#describe').val();
	var m = $('#email').val();
	if (t.length == 0) {
		hideLoadingPad();
		alertMsg("请选择所属功能菜单");
		return;
	}
	if (r.length == 0) {
		hideLoadingPad();
		alertMsg("请填写反馈描述信息");
		return;
	}
	if (m.length == 0) {
		hideLoadingPad();
		alertMsg("请填写您的联系邮箱");
		return;
	}
	var images = new Array();
	images.push($('#img0').attr('src'));
	images.push($('#img1').attr('src'));
	$.ajax({
		url : '/pad_marketing/feedback/upImgFile.action',
		data : {
			"images" : images,
			"type": $('#type').find("option:selected").text(),
			"describe":$('#describe').val(),
			"email":$('#email').val()
		},
		type : "post",
		success : function(data) {
			if (data.status == 'success') {
				hideLoadingPad();
				alertMsg(data.msg,0,function(){
					location.reload();
				});
			}else{
				hideLoadingPad();
				alertMsg(data.msg);
			}
		}
	})		
}